package org.JQbitorrentClinet.request.log;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.base.BaseGetParam;
import org.JQbitorrentClinet.pojo.log.PeerLogRecord;

import java.util.List;

@Builder
public class GetPeerLogParam extends BaseGetParam{
    Integer last_known_id;

    public GetPeerLogParam(Integer last_known_id){
        this.last_known_id = last_known_id;
        responseType = new TypeToken<List<PeerLogRecord>>(){}.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/log/peers";
    }
}
